import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/components/layout'
import Index from "@/components/index"
import Shouye from "@/components/crtuser/shouye"
import tLogin from "@/components/crtteacher/tLogin"
import payRecord from "@/components/crtpayrecord/index.vue"
import OrderInfor from "@/components/crtorder/order-infor.vue"
import OrderSuccess from "@/components/crtorder/order-success.vue"
import Rank from "@/components/crtrank/index.vue"

Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: 'layout',
		component: Layout,
		redirect: "/index",
		children: [{
			path: "index",
			name: "index",
			component: Index
		}, {
			path: "shouye",
			name: "shouye",
			component: Shouye
		}, {
			path: "tLogin",
			name: "tLogin",
			component: tLogin
		}, {
			path: "payRecord",
			name: "payRecord",
			component: payRecord
		}, {
			path: "orderInfor",
			name: "orderInfor",
			component: OrderInfor
		}, {
			path: "orderSuccess",
			name: "orderSuccess",
			component: OrderSuccess
		}, {
			path: "rank",
			name: "rank",
			component: Rank
		}]

	}]
})